package com.newgrand.controller;/*
 *@authot liugz
 *  @date 2023/9/20 10:52
 */

import com.newgrand.domain.model.I8ReturnModel;
import com.newgrand.service.CntMChangeServer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "合同变更")
@RequestMapping("/CntMChange")
@RestController
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class CntMChangeController {

    private final CntMChangeServer cntMChangeServer;

    @ApiOperation(value = "收入合同变更", notes = "收入合同变更")
    @RequestMapping(value = "/Send/sendCntMChange", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntMChange(String phId) {
        return cntMChangeServer.sendCntMChange(phId);
    }

    @ApiOperation(value = "收入合同变更批量推送", notes = "收入合同变更批量推送")
    @RequestMapping(value = "/Send/sendCntMChangeBatch", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntMChangeBatch() {
        return cntMChangeServer.sendCntMChangeBatch();
    }

    @ApiOperation(value = "收入合同变更删除推送", notes = "收入合同变更删除推送")
    @RequestMapping(value = "/Send/sendCntMChangeDelete", method = RequestMethod.GET)
    I8ReturnModel<String> sendCntMChangeDelete(String phId) {
        return cntMChangeServer.sendCntMChangeDelete(phId);
    }

}
